import request from '@/utils/request'

/**
 * 小区内容渲染
 */
export function getCommunityApi() {
  return request({
    url: '/community'
  })
}
/**
 * 收费项目管理列表
 * @param {*} params
 * @returns
 */
export function getprojectlistApi(params) {
  return request({
    method: 'GET',
    url: '/expenses/project',
    params
  })
}
/**
 * 删除
 */
export function delprojectlistApi(id) {
  return request({
    method: 'DELETE',
    url: `/expenses/project/${id}`
  })
}
/**
 * 新增
 */
export function addprojectlistApi(data) {
  return request({
    method: 'POST',
    url: '/expenses/project',
    data
  })
}

/**
 * 回显
 * @param {*} params
 * @returns
 */
export function getshowprojectlistApi(params) {
  return request({
    method: 'GET',
    url: '/expenses/project',
    params
  })
}

/**
 * 修改
 */
export function editprojectlistApi(data) {
  return request({
    method: 'PUT',
    url: `/expenses/project/${data.id}`,
    data
  })
}
